package com.byit.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * @ClassName AppCertificate
 * @Description TODO
 * @Author lxp
 * @Date 2019-01-07 11:42
 **/
@TableName("app_certificate")
@Data
public class AppCertificate extends Model<AppCertificate> {


    private static final long serialVersionUID = 1L;


    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 证件名称
     */
    @TableField("name")
    private String name;
    /**
     * 默认 0 0:为审核 1:已审核
     */
    @TableField("is_check")
    private Integer isCheck;

    /**
     * 证件名称
     */
    @TableField("card_no")
    private String cardNo;

    /**
     * 类型 1.身份证 2.营业执照3.驾驶证4.行驶证
     * 5.社会保险卡 6.护照 7.港澳通行证
     * 8.城市一卡通9.校园一卡通 0其他
     */
    @TableField("type")
    Integer type;
    /**
     * 证件类型
     */
    @TableField("card_type")
    private String cardType;

    /**
     * 证件图片
     */
    @TableField("picture")
    private String picture;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    @TableField("update_time")
    private Date updateTime;

    @TableField("create_time")
    private Date createTime;

    /**
     * 操作用户id
     */
    @TableField("operation_id")
    private Long operationId;

    /**
     * 是否删除
     */
    @TableField("is_del")
    private String isDel;


    @Override
    protected Serializable pkVal() {
        return null;
    }

    @Override
    public String toString() {
        return "AppCertificate{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", name='" + name + '\'' +
                ", type=" + type +
                ", picture='" + picture + '\'' +
                ", remark='" + remark + '\'' +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                ", operationId='" + operationId + '\'' +
                ", isDel='" + isDel + '\'' +
                '}';
    }
}
